<div class="content">
	<div class="ibox">
        <div class="ibox-title">
            <h5>实时成绩查询</h5>
            <div ibox-tools>
                <div class="ibox-tools dropdown">
                    <!-- <button type="button" class="btn btn-sm btn-primary m-t-n-xs" ng-click="vm.largeScreen()">投影大屏幕</button> -->
                    <button type="button" class="btn btn-sm btn-primary m-t-n-xs" ng-click="vm.download()">下载成绩</button>
                    <button type="button" class="btn btn-sm btn-primary m-t-n-xs" ng-click="vm.print()">打印实时成绩</button>
                    <button type="button" class="btn btn-sm btn-primary m-t-n-xs" ng-click="vm.recalc()">重新计算所有成绩</button>
                    <button type="button" class="btn btn-sm btn-primary m-t-n-xs" ng-click="vm.publish()">发布成绩</button>
                </div>
            </div>
        </div>
        <div class="ibox-content">
        	<div class="form-horizontal">
				<div class="form-group">
	                <div class="col-lg-6 margin-bottom-20">
	                	<p>请选择科目 <b class="text-danger">*</b></p>
	                    <select name="course" class="form-control" ng-model="vm.course" ng-options="item.course_name for item in vm.courselist" required>
	                    </select>
	                </div>
	                <div class="col-lg-6 margin-bottom-20" ng-show="vm.show_select">
	                	<p>请选择CP点</p>
	                    <select name="cp" class="form-control" ng-model="vm.cp" ng-options="item.cp_name for item in vm.course.cp_calc">  
	                        <option value="">全部</option>  
	                    </select>
	                </div>
		            <!-- <div class="col-lg-3 margin-bottom-20" ng-show="vm.show_select">
	                	<p>请选择选手状态</p>
	                    <select name="course" class="form-control" ng-model="vm.runnerState" required>  
	                        <option value="">全部</option>
	                        <option value="complete">已完赛</option>
	                        <option value="unComplete">未完赛</option>
	                        <option value="DNF">DNF</option>
	                    </select>
	                </div> -->
	                <!-- <div class="col-lg-offset-3 col-lg-3 margin-bottom-20" ng-show="vm.show_select">
	                	<p>查询选手个人成绩</p>
						<div class="input-group margin-bottom-20">
			                <input type="text" id="search_input" placeholder="输入你想查询的选手号" class="input form-control" ng-model="vm.bib">
			                <span class="input-group-btn">
			                    <button type="button" class="btn btn btn-primary" ng-click="vm.search(vm.bib)"> <i class="fa fa-search"></i> 搜索</button>
			                </span>
            			</div>
	                </div> -->
	            </div>
            </div>
			
			<div bs-active-pane="vm.tabs.activeTab" bs-tabs>
				<div ng-repeat="tab in vm.tabs" data-title="{{ tab.title }}" name="{{ tab.title }}" bs-pane>
					
				</div>
			</div>

			<!-- 实时成绩查询模版 -->
			<div ng-include="vm.template" class="margin-top-20"></div>

        </div>
    </div>
</div>